<div class="col-sm-12 mt20" ng-keyup="myKeyup($event)">
<div class="panel panel-default">
<div class="panel-body">
<div class="col-sm-12">
    <div class="row ">
        <div class="col-sm-2"> 
            <ui-select ng-model="searchform.selected" theme="bootstrap" ng-disabled="selectgood.flag == '0'" ng-change="change(searchform.selected)">
                <ui-select-match placeholder="请选择一个渠道">{{$select.selected.channel}}</ui-select-match>
                <ui-select-choices repeat="item in channelarr | filter: $select.search">
                  <span ng-bind-html="item.channel | highlight: $select.search"></span>
                  <!--<small ng-bind-html="item.code | highlight: $select.search"></small>-->
                </ui-select-choices>
            </ui-select>
        </div>
        <div class="col-sm-2">
            <div class="input-group" datetimepicker ng-model="vm.date" options="vm.options">
                <input class="form-control" />
                <span class="input-group-addon">
                    <span class="glyphicon glyphicon-calendar"></span>
                </span>
            </div>
        </div>
        <div class="col-sm-offset-6 col-sm-2">
            <button type="submit" class="btn btn-info search  btn-block" ng-click="getlist()">立即搜索</button>
        </div>

    </div>

</div>
</div>
</div>
<!-- searchArea -->
<div class="panel panel-default">
    <div class="panel-body">
        <table class="table table-condensed table-hover table-bordered">
            <thead>
              <tr>
                <th class="col-md-2 text-center">广告标题</th>
                <th class="col-md-1 text-center">广告看到的步骤</th>
                <th class="col-md-1 text-center">渠道</th>
                <th class="col-md-1 text-center">状态</th>
                <th class="col-md-1 text-center">用户昵称</th>
                <th class="col-md-1 text-center">头像</th>
                <th class="col-md-2 text-center">创建时间</th> 
                <th class="col-md-1 text-center">获得积分</th>
                <th class="col-md-2 text-center">操作</th>
                               
              </tr> 
            </thead>
            <tbody>
              <tr ng-repeat="obj in objs">
                <td class="text-center" style="text-align:center;vertical-align:middle;">{{obj.title}}</td>
                <td class="text-center" style="text-align:center;vertical-align:middle;">{{obj.step}}</td>
                <td class="text-center" style="text-align:center;vertical-align:middle;">{{obj.channel}}</td>
                <td class="text-center" style="text-align:center;vertical-align:middle;">
                    <p class="" ng-show="obj.state == '1'">进行中</p>
                    <p class="" ng-show="obj.state == '2'">领取了一部分</p>
                    <p class="" ng-show="obj.state == '3'">全部领取完毕</p>
                </td>
                <td class="text-center" style="text-align:center;vertical-align:middle;">{{obj.nickname}}</td>
                <td class="text-center" style="text-align:center;vertical-align:middle;">
                    <img ng-src="{{obj.headimg}}" class="img-responsive" style="border-radius:100px;">
                </td>
                <td class="text-center" style="text-align:center;vertical-align:middle;">{{obj.create_time}}</td>        
                <td class="text-center" style="text-align:center;vertical-align:middle;">{{obj.integral}}</td>
                <td class="text-center" style="text-align:center;vertical-align:middle;">
                  <a ng-click="helppeople(obj.id)" class="btn btn-info btn-xs">帮看好友</a>
                </td>
              </tr>
            </tbody>
        </table>
        <div class="text-right">
             <pagination total-items="bigTotalItems" ng-model="bigCurrentPage" ng-change="getlist()" previous-text="上一页" next-text="下一页"
                first-text="首页" last-text="尾页" max-size="maxSize" boundary-links="true" rotate="false" items-per-page="itemsPerPage"
                class="m-t-none m-b">
            </pagination>
        </div>
    </div>
</div>

</div>
